#!/usr/bin/env python
# Copyright (c) 2007-8 Qtrac Ltd. All rights reserved.
# This program or module is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as published
# by the Free Software Foundation, either version 2 of the License, or
# version 3 of the License, or (at your option) any later version. It is
# provided for educational purposes and is distributed in the hope that
# it will be useful, but WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
# the GNU General Public License for more details.

import sys
from PyQt4.QtCore import *
from PyQt4.QtGui import *


class Form(QDialog):

    def __init__(self, parent=None):
        super(Form, self).__init__(parent)
	self._setupUi()

    def _clearWidgets(self):
	self._autoUpdateRate()
	self.updateUi()
    

    def _setupUi(self):
	self.calendar = QCalendarWidget()
	grid = QGridLayout()
	grid.addWidget(self.calendar, 0, 0)
	self.setLayout(grid)
	return

    def updateUi(self):

	return
        
    def _advancedSetting(self):
	self._autoUpdateRate()
	self.updateUi()

app = QApplication(sys.argv)
form = Form()
form.show()
app.exec_()



